class Span:
    def __init__(self, spanID, service, name, start, end, duration):
        self.idx = None
        self.parent = None
        self.children = []
        self.spanID = spanID
        self.service = service
        self.name = name
        self.start = start
        self.end = end
        self.duration = duration
        self.self_duration = None
        self.level = 0
        self.duration_anomaly_score = None
        self.self_duration_anomaly_score = None
        self.duration_z_score = None
        self.self_duration_z_score = None
